﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using V2.PaidTimeOffDAL.Framework;

namespace V2.PaidTimeOffDAL.Reports
{
    public static class ReportMyPTORequestsData
    {
        public static List<ReportMyPTORequestsResult> Select(string entWorkflowObjectName, int entUserAccountId)
        {
            using (HRPaidTimeOffDataContext db = new HRPaidTimeOffDataContext(DBHelper.GetHRPaidTimeOffConnectionString()))
            {
                return db.ReportMyPTORequests(entWorkflowObjectName, entUserAccountId).ToList();
            }
        }
    }
}
